<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="header.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div id="divId"></div>
	
	<script type="text/javascript">
		$.post('${path}/product/selectByParentId.action',
				function(jsonResult){
					$(jsonResult).each(function(){
						$('#divId').append('<p><a href="${path}/product/selectByCategory.action?parentId='+this.id+'">'+this.name+'</a></p>')
					})
				},
				'json'
		);
	</script>
</body>
</html>